package com.liu.proxyDemo;

//中介角色
public class Proxy implements Rent{
    private HostPerson hostPerson;

    public Proxy() {
    }

    public Proxy(HostPerson hostPerson) {
        this.hostPerson = hostPerson;
    }
    //看房
    public void seeHost(){
        System.out.println("中介带你看房");
    }
    //租房
    public void Rent(){
        System.out.println("中介帮你租房");
        hostPerson.bugHost();
    }
}
